﻿#define DEBUG
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;

namespace _042
{
    internal class Program
    {
        static void function1()
        {
            Myclass.Message("Function1函数");
            function2();
        }
        static void function2()
        {
            Myclass.Message("Function2函数");
        }
        static void Main(string[] args)
        {
            Myclass.Message("Main函数");
            function1();
            Console.ReadKey();
        }
    }
    public class Myclass
    {
        [Conditional ("DEBUG")]
        public static void Message(string msg)
        {
            Console.WriteLine(msg);
        }
    }
}
